﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/MasterHome.master" AutoEventWireup="true"
    CodeFile="ViewMyCart.aspx.cs" Inherits="ViewMyCart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ListView ID="ListView1" runat="server" OnItemCommand="ListView1_ItemCommand"
        OnItemDataBound="ListView1_ItemDataBound">
        <AlternatingItemTemplate>
            <tr style="background-color: #FFFFFF; color: #284775;">
                <td>
                    <asp:Label ID="lblName" runat="server" Text='<%# Eval("ProductCode") %>' />
                </td>
                <td>
                    <asp:Label ID="lblCode" runat="server" Text='<%# Eval("ProductCode") %>' />
                </td>
                <td>
                    <asp:TextBox ID="txtQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("Price") %>' />
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Update" CommandName="add" />
                </td>
                <td>
                    <asp:Button ID="Button2" runat="server" Text="Delete" CommandName="123" />
                </td>
            </tr>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
                border-color: #999999; border-style: none; border-width: 1px;">
                <tr>
                    <td>
                        No data was returned.
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <ItemTemplate>
            <tr style="background-color: #FFFFFF; color: #284775;">
                <td>
                    <asp:Label ID="lblName" runat="server" Text='<%# Eval("ProductCode") %>' />
                </td>
                <td>
                    <asp:Label ID="lblCode" runat="server" Text='<%# Eval("ProductCode") %>' />
                </td>
                <td>
                    <asp:TextBox ID="txtQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("Price") %>' />
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Update" CommandName="add" />
                </td>
                <td>
                    <asp:Button ID="Button2" runat="server" Text="Delete" CommandName="123" />
                </td>
            </tr>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table id="itemPlaceholderContainer" runat="server" border="1" style="background-color: #FFFFFF;
                            border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;
                            font-family: Verdana, Arial, Helvetica, sans-serif;">
                            <tr runat="server" style="background-color: #E0FFFF; color: #333333;">
                                <th runat="server">
                                    Name
                                </th>
                                <th runat="server">
                                    ProductCode
                                </th>
                                <th runat="server">
                                    Quantity
                                </th>
                                <th runat="server">
                                    Price
                                </th>
                                <th runat="server">
                                    Update Quantity
                                </th>
                                <th runat="server">
                                    Delete
                                </th>
                            </tr>
                            <tr id="itemPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="text-align: center; background-color: #5D7B9D; font-family: Verdana, Arial, Helvetica, sans-serif;
                        color: #FFFFFF">
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:ListView>
</asp:Content>
